<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo ($pagetitle); ?></title>

	<script src="/Public/Js/jquery-1.9.0.min.js"></script>
	<script src="/Public/Js/bootstrap-3.0.3-dist/js/bootstrap.js"></script>
	<script src="/Public/Js/bootstrap-switch.min.js"></script>
	<script src="/Public/Js/common.js"></script>
	<script src="/Public/Js/user.js"></script>

	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-3.0.3-dist/css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-3.0.3-dist/css/bootstrap-theme.css" />
	<link rel="stylesheet" type="text/css" href="/Public/Css/bootstrap-switch.min.css" />
	<script type="text/javascript">
	var _BASEURL_ = '<?php echo U('Index');?>';
	var _UPDATEURL_ = '<?php echo U('Index/doupdate');?>';
	var _DELETEURL_ = '<?php echo U('Index/dodelete');?>';
	var _RESUMEURL_ = '<?php echo U('Index/doresume');?>';

	var _USERADDURL_ = '<?php echo U('User/doadd');?>';
	var _USERUPDATEURL_ = '<?php echo U('User/doupdate');?>';
	var _USERSTATUSURL_ = '<?php echo U('User/status');?>';
	var USERROLE = Array('超级无敌管理员','无敌管理员','超级管理员','管理员','屌丝管理员','不是管理员')
	</script>
	<style type="text/css">
	header,legend {background-color: #fff;}
	body { padding-top: 70px; }
	th,td {text-align:center; }
	</style>
</head>
<body>
	<header class="navbar navbar-fixed-top" role="banner">
		<div class="container" >
			<nav class="navbar navbar-default" role="navigation">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">Splio Internal Tools</a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="dropdown <?php echo ($ispShowActive); ?> <?php echo ($ispUpdateActive); ?> <?php echo ($ispInsertActive); ?> <?php echo ($ispTrashActive); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">ISP Registration <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li class="<?php echo ($ispShowActive); ?>"><a href="<?php echo U('Index/show');?>">List</a></li>
							<?php if(($my_info["role"]) <= "2"): ?><li class="<?php echo ($ispInsertActive); ?>"><a href="<?php echo U('Index/insert');?>">New</a></li>
								<li class="<?php echo ($ispUpdateActive); ?>"><a href="<?php echo U('Index/update');?>">Edit</a></li>
								<li class="<?php echo ($ispTrashActive); ?>"><a href="<?php echo U('Index/trash');?>">Trash</a></li><?php endif; ?>
								<li class="divider"></li>
								<li>Filter:</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="tencent" checked type="checkbox">Tencent
										</label>
									</div>
								</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="netease" checked type="checkbox">Netease
										</label>
									</div>
								</li>
								<li>
									<div class="checkbox">
										<label>
											<input class="filter_checkbox" data-isp="sina" checked type="checkbox">Sina
										</label>
									</div>
								</li>
							</ul>
						</li>
						<?php if(($my_info["role"]) <= "2"): ?><li class="dropdown <?php echo ($poolShowActive); ?> <?php echo ($poolInsertActive); ?> <?php echo ($poolUpdateActive); ?>">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">IP Pool <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li class="<?php echo ($poolShowActive); ?>"><a href="<?php echo U('Pool/show');?>">Show</a></li>
								<li class="<?php echo ($poolInsertActive); ?>"><a href="<?php echo U('Pool/insert');?>">Insert</a></li>
								<li class="<?php echo ($poolUpdateActive); ?>"><a href="<?php echo U('Pool/update');?>">Update</a></li>
								<li class="divider"></li>
							</ul>
						</li><?php endif; ?>
						<li class="<?php echo ($cmCampaignThumbTActive); ?>" ><a href="<?php echo U('Thumb/getcampaignthumb');?>" >Campaign Thumb</a></li>
						<?php if(($my_info["role"]) <= "0"): ?><li class="<?php echo ($userManagementActive); ?>"><a href="<?php echo U('User/index');?>">User Management</a></li><?php endif; ?>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li><a><span class="glyphicon glyphicon-user"></span> <?php echo ($my_info["nickname"]); ?></a></li>
						<li style="f"><a href="<?php echo U("Public/loginOut");?>" class="loginOut"><span>&nbsp;</span><span class="glyphicon glyphicon-leaf"></span> Logout </a></li>
					</ul>
				</div>
			</nav>
		</div>
	</header>
<div class="row" style="margin-right:0;">
	<div class="col-lg-1"></div>
	<div class="col-lg-10">
		<div data-spy="affix" data-offset-top="1" style="background-color:#ffffff;">
			<ol class="breadcrumb">
				<li class="active">ISP Registration</li>
				<li class="active">Update</li>
			</ol>
			<legend></legend>
		</div>
		<table id="tb" class="table table-hover table-bordered">
			<thead class="t_h" data-spy="affix" data-offset-top="2" style="background-color:#ffffff;border-bottom:10px solid #ff0;padding-top:2px;z-index:100">
				<tr>
					<th id="h_id">ID</th>
					<th id="h_universe">Universe ID</th>
					<th id="h_company">Company</th>
					<th id="h_tsender">Transactional<br>Sender/Domain</th>
					<th id="h_tip">Transactional<br>IP</th>
					<th id="h_csender">Commercial<br>Sender/Domain</th>
					<th id="h_cip">Commercial<br>IP</th>
					<th id="h_level">Level /<br>Volume</th>
					<th id="h_isp">ISP</th>
					<th id="h_operation"><a style="font-size: 30px; color: #000;" href="javascript:void(0)"><span class="glyphicon glyphicon-wrench" title="Operation"></span></a></th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($rawRegs)): foreach($rawRegs as $key=>$rawReg): ?><tr id="regid_<?php echo ($rawReg["id"]); ?>" class="tbtr tbtr_<?php echo (strtolower($rawReg["isp"])); ?>">
						<td class="id" id="id_<?php echo ($rawReg["id"]); ?>"><?php echo ($rawReg["id"]); ?></td>
						<td class="universe" id="universe_<?php echo ($rawReg["id"]); ?>"><?php echo (str_replace(',','<br>',$rawReg["universe"])); ?></td>
						<td class="company" id="company_<?php echo ($rawReg["id"]); ?>"><?php echo ($rawReg["company"]); ?></td>
						<td class="tsender" id="tsender_<?php echo ($rawReg["id"]); ?>"><?php echo (str_replace(',','<br>',$rawReg["tsender"])); ?></td>
						<td class="tip" id="tip_<?php echo ($rawReg["id"]); ?>"><?php echo (str_replace(',','<br>',$rawReg["tip"])); ?></td>
						<td class="csender" id="csender_<?php echo ($rawReg["id"]); ?>"><?php echo (str_replace(',','<br>',$rawReg["csender"])); ?></td>
						<td class="cip" id="cip_<?php echo ($rawReg["id"]); ?>"><?php echo (str_replace(',','<br>',$rawReg["cip"])); ?></td>
						<td class="level" id="level_<?php echo ($rawReg["id"]); ?>"><?php echo ($rawReg["level"]); ?></td>
						<td class="isp" id="isp_<?php echo ($rawReg["id"]); ?>"><?php echo (ucfirst($rawReg["isp"])); ?></td>
						<td class="operation">
							<a id="regeditbtn_<?php echo ($rawReg["id"]); ?>" data-regid="<?php echo ($rawReg["id"]); ?>" class="regeditbtn" style="font-size: 30px; color: #000;" href="javascript:void(0)"><span class="glyphicon glyphicon-edit" title="Edit"></span></a>
							<a id="regdeletebtn_<?php echo ($rawReg["id"]); ?>" class="regdeletebtn" data-regid="<?php echo ($rawReg["id"]); ?>" style="font-size: 30px; color: #000;" href="javascript:void(0)"><span class="glyphicon glyphicon-floppy-remove" title="Trash"></span></a>
							<a id="regsavebtn_<?php echo ($rawReg["id"]); ?>" data-regid="<?php echo ($rawReg["id"]); ?>" class="regsavebtn hide" style="font-size: 30px; color: #000;" href="javascript:void(0)"><span class="glyphicon glyphicon-floppy-saved" title="Save"></span></a>
							<a id="regcancelbtn_<?php echo ($rawReg["id"]); ?>" data-regid="<?php echo ($rawReg["id"]); ?>" class="regcancelbtn hide" style="font-size: 30px; color: #000;" href="javascript:void(0)"><span class="glyphicon glyphicon-paperclip" title="Cancel"></span></a>
						</td>
					</tr><?php endforeach; endif; ?>
			</tbody>
		</table>
	</div>
	<div class="col-lg-1"></div>
</div>
		<div id="footer" style="height: 60px;background-color: #f5f5f5;">
			<div class="container">
				<p class="text-muted">Splio Internal Tools.</p>
			</div>
		</div>
	</body>
</html>